package com.demo.feign.service;

import org.springframework.cache.annotation.Cacheable;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name="nacos-discovery")
public interface FeignService2 {
    @RequestMapping("/nacos-discovery/discovery/test")
    @Cacheable(cacheNames = "cache", key = "#root.targetClass.name+'-'+#root.method.name")
    void test();
}
